package com.lj.queue.enums;

import com.lj.common.enums.EnumDict;
import com.lj.common.enums.ICommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.time.temporal.ChronoUnit;
import java.util.concurrent.TimeUnit;

/**
 * @author luojing
 * @since 2025/7/18 10:26
 */
@AllArgsConstructor
@Getter
@EnumDict(name = "TimeUnits")
public enum TimeUnits implements ICommonEnum<Integer> {

    //    NANOSECONDS(1, TimeUnit.NANOSECONDS, ChronoUnit.NANOS, "纳秒"),
//    MICROSECONDS(2, TimeUnit.MICROSECONDS, ChronoUnit.MICROS, "微秒"),
    MILLISECONDS(3, TimeUnit.MILLISECONDS, ChronoUnit.MILLIS, "毫秒"),
    SECONDS(4, TimeUnit.SECONDS, ChronoUnit.SECONDS, "秒"),
    MINUTES(5, TimeUnit.MINUTES, ChronoUnit.MINUTES, "分钟"),
    HOURS(6, TimeUnit.HOURS, ChronoUnit.HOURS, "小时"),
    DAYS(7, TimeUnit.DAYS, ChronoUnit.DAYS, "天");

    private final Integer value;
    private final TimeUnit timeUnit;
    private final ChronoUnit chronoUnit;
    private final String desc;
}
